export default {
  namespace: 'AccountPassword',
  state: {
    account: [
      { username: 'admin', password: 'admin', key: 1 },
      { username: 'chenyue', password: 'chenyue', key: 2 },
      { username: 'suzhongbao', password: 'suzhongbao', key: 3 },
      { username: 'xuzhixing', password: 'xuzhixing', key: 4 },
      { username: 'mingkai', password: 'mingkai', key: 5 },
      { username: 'shijie', password: 'shijie', key: 6 },
    ],
  },
  reducers: {
    addAccount(state: object, { payload }: any) {
      return { ...state, ...payload };
    },
  },
};
